package com.moonce.api.util;

/**
 * @author 马路遥(229010812 @ qq.com)
 * @version V1.0
 * @Title: springmvc-demo
 * @Package com.moonce.api.util
 * @Description:
 * @Date 2017-12-14 11:30
 */
public class TokenUtils {

    public static final Integer LEN = 18;

    public static Long getUserId(String subject) {
        if (subject != null && subject.trim().length() == LEN) {
            return Long.valueOf(subject.trim());
        }
        return null;
    }


}
